import App from "./app";
import { SendMailConfig } from "./mailer";

const readlineSync = require("readline-sync");
const sendMailConfig: SendMailConfig = {
	to: "",
	title: "",
	subject: "",
	text: ""
};

sendMailConfig.to = readlineSync.question(
	"Please input your target mail address: ",
	{
		encoding: "utf8"
	}
);
sendMailConfig.subject = readlineSync.question(
	"Please input the subject of your mail: ",
	{
		encoding: "utf8"
	}
);
sendMailConfig.text = readlineSync.question(
	"Please input the content of your mail: ",
	{
		encoding: "utf8"
	}
);
App(sendMailConfig);
